<script>
  import Vue from 'vue'
  import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
  export default {
    onShow(){
      // #ifdef APP
      // 隐藏系统虚拟按键（导航栏）
      // void plus.navigator.hideSystemNavigation();
      // 设置应用全屏显示
      plus.navigator.setFullscreen(true);
      // #endif
    },
    onLaunch: function() {
      // #ifdef APP
      checkUpdate()
      // 隐藏系统虚拟按键（导航栏）
      // void plus.navigator.hideSystemNavigation();
      // 设置应用全屏显示
      plus.navigator.setFullscreen(true);
      // #endif
      uni.getSystemInfo({
        success: function(e) {
          // #ifndef MP
          Vue.prototype.StatusBar = e.statusBarHeight;
          if (e.platform == 'android') {
            Vue.prototype.CustomBar = e.statusBarHeight + 50;
          } else {
            Vue.prototype.CustomBar = e.statusBarHeight + 45;
          };
          // #endif
          // #ifdef MP-WEIXIN
          Vue.prototype.StatusBar = e.statusBarHeight;
          let custom = wx.getMenuButtonBoundingClientRect();
          Vue.prototype.Custom = custom;
          Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
          // #endif       
          // #ifdef MP-ALIPAY
          Vue.prototype.StatusBar = e.statusBarHeight;
          Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
          // #endif
        }
      })
	  this.setTestConfig()
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
</script>

<style lang="scss">
  /* 引入uView基础样式的 */
  @import "@/uni_modules/uview-ui/index.scss";
  /* colorUI */
  @import "colorui/main.css";
  @import "colorui/icon.css";

  /* mixin */
  @import "common/css/flex.mixin.scss";
  @import "common/css/text-overflow.scss";
  /*每个页面公共css */
  @import "common/css/normal.scss";
	@import '@/uni_modules/uni-scss';  // 1025 引入 uni UI  scss

  @import "@/common/uni.css";
	
  html {
    font-size: $retail-root-font-size;
		--page-height:calc(100vh - var(--window-top) - var(--window-bottom) - var(--header-height));
  }
  
  .uni-body{
	  font-size:14px;
  }

  .screen-swiper uni-image,
  .screen-swiper uni-video,
  .swiper-item uni-image,
  .swiper-item uni-video {
    height: 150px;
  }
</style>
